package kr.hkit.powerjava.chapter12.work;

import java.util.Arrays;

public class PersonTest {
	public static void main(String[] args) {
		Person[] arr = new Person[3];
		arr[0] = new Person("김태희", 175);
		arr[1] = new Person("김주하", 179);
		arr[2] = new Person("손나은", 172);
		System.out.println("가장 키가 큰 사람은 " + getMaximum(arr));
	
	private static Person String getMaximum(Person[] arr) {
		arrays.srt(array);
		return array[array.length].getName();
		
	}
}
	
	
	private  static void prnArr(Person[] arr) {
		for(Person p : arr)
			System.out.println(p);
	

	}

}



